package com.imooc.example.ticket.query;

import com.imooc.example.ticket.event.saga.StudentAgedEvent;
import lombok.extern.slf4j.Slf4j;
import org.axonframework.config.ProcessingGroup;
import org.axonframework.eventsourcing.EventSourcingHandler;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@ProcessingGroup("TicketEventProcessor")
public class StudentAgeProjector {

    @EventSourcingHandler
    public void onAge(StudentAgedEvent event) {
        log.info("ticket StudentAgedEvent = {}", event);
    }
}
